﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NoticeInfo.aspx.cs" Inherits="Catering.Catering_Page.system.NoticeInfo" %>

<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="../../Scripts/zhezhao.js" type="text/javascript"></script>
    <link href="../../Style/zhezhao.css" rel="stylesheet" type="text/css" />
    <link href="../../Style/head.css" rel="stylesheet" type="text/css" />
    <link href="../../Style/center.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script type="text/javascript" src="../../Scripts/uploader/jquery.uploadify.v2.1.0.min.js"></script>
    <script type="text/javascript" src="../../Scripts/uploader/swfobject.js"></script>
    <link type="text/css" href="../../Scripts/uploader/uploadify.css" rel="stylesheet" />
    <style type="text/css">
        .wrapper
        {
            width: 400px;
            margin: 10px auto;
        }
    </style>
    <style type="text/css">
        *
        {
            margin: 0px;
            padding: 0px;
        }
        body
        {
            font-size: 12px;
        }
        .data_css
        {
            width: 99%;
            margin-top: 10px;
            height: 310px;
            overflow-y: auto;
            overflow-x: hidden;
            border: #ccc 1px solid;
        }
        .data_css th
        {
            background: url(../../Images/th_02bg.gif) repeat-x 0px 0px;
            padding: 0px;
            text-align: center;
            height: 29px;
            border-right: #ccc 1px solid;
            font-weight: 400;
        }
        .data_css td
        {
            text-align: center;
            height: 20px;
            line-height: 20px;
        }
        .btn_list
        {
            width: 99%;
            height: 30px;
            line-height: 30px;
            padding: 5px 0px;
            border: 1px solid #c2def6;
            background-color: #e5f1ff;
            margin-top: 10px;
        }
        img
        {
            border: 0px;
        }
    </style>
    <script type="text/javascript">
        function GetEditURL(id) {
            var returnurl = $("#HF_CurPageURL").val();
            if (id > 0) location.href = "NoticeInfo_Edit.aspx?NoticeID=" + id + "&ReturnURL=" + returnurl;
            else location.href = "NoticeInfo_Edit.aspx?ReturnURL=" + returnurl;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div style="height: 36px; line-height: 36px; font-size: 13px;">
        &nbsp;当前位置：通告维护</div>
    <div class="btn_list" style="margin-top: 0px;">
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td width="35" align="right">
                    按：
                </td>
                <td width="120">
                    <asp:DropDownList ID="DropDownList1" CssClass="select_input_bg" Style="width: 100px;"
                        AutoPostBack="true" runat="server">
                        <asp:ListItem Text="标题搜索" Selected="True" Value="title"></asp:ListItem>
                        <asp:ListItem Text="发布人搜索" Value="user"></asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td width="170">
                    <asp:TextBox ID="txt_search" CssClass="input_bg" runat="server"></asp:TextBox>
                </td>
                <td width="100">
                    <asp:Button ID="Btn_Search" runat="server" Text="查询" CssClass="input_btn_a" OnClick="Btn_Search_Click" />
                </td>
                <td>
                    &nbsp;
                </td>
                <%if (Catering.Toolss.IsVerification(Session["RoleID"].ToString(), "System_Data.aspx", "通告维护操作"))
                  { %>
                <td width="100" align="right">
                    <a href="javascript:GetEditURL(0)" class="input_btn_a">添加</a>
                </td>
                <%} %>
                <td width="10">
                </td>
            </tr>
        </table>
    </div>
    <div class="data_css">
        <table width="100%" border="1" cellpadding="0" cellspacing="0">
            <thead>
                <tr>
                    <th>
                        序号
                    </th>
                    <th>
                        标题
                    </th>
                    <th>
                        发布时间
                    </th>
                    <th>
                        发布人
                    </th>
                    <th>
                        编辑
                    </th>
                    <th>
                        删除
                    </th>
                </tr>
            </thead>
            <tbody>
                <asp:Repeater ID="NoticeRept" runat="server">
                    <ItemTemplate>
                        <tr>
                            <td>
                                <%# Eval("tempid")%>
                            </td>
                            <td>
                                <%# Eval("Title")%>
                            </td>
                            <td>
                                <%# Convert.ToDateTime(Eval("Release")).ToString("yyyy-MM-dd HH:mm")%>
                            </td>
                            <td>
                                <%#Eval("Name")%>
                            </td>
                            <%if (Catering.Toolss.IsVerification(Session["RoleID"].ToString(), "System_Data.aspx", "通告维护操作"))
                              { %>
                            <td>
                                <a href='javascript:GetEditURL(<%# Eval("id") %>)'>
                                    <img alt="" src="../../Images/file.gif" />
                                </a>
                            </td>
                            <td>
                                <a href="NoticeInfo.aspx?status=del&id=<%# Eval("id") %>" onclick='javascript:return confirm("确认删除？")'>
                                    <img alt="" src="../../Images/trash.gif" />
                                </a>
                            </td>
                            <%}
                              else
                              { %>
                            <td>
                                &nbsp;
                            </td>
                            <td>
                                &nbsp;
                            </td>
                            <%} %>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </tbody>
        </table>
        <div class="paper_n">
            <table align="center">
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:Label ID="lblCurPage" runat="server"></asp:Label><asp:HiddenField ID="HF_CurPageURL"
                            runat="server" />
                    </td>
                    <td>
                        <asp:Label ID="Label6" runat="server" Text="每页8条"></asp:Label>
                    </td>
                    <td>
                        <ul>
                            <li class="paper_H">
                                <asp:HyperLink ID="InkFirst" runat="server">首页</asp:HyperLink></li>
                            <li class="paper_U">
                                <asp:HyperLink ID="InkPrev" runat="server">上一页</asp:HyperLink></li>
                            <li class="paper_D">
                                <asp:HyperLink ID="InkNext" runat="server">下一页</asp:HyperLink></li>
                            <li class="paper_F">
                                <asp:HyperLink ID="InkLast" runat="server">末页</asp:HyperLink></li>
                        </ul>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
